/*
 * signatures.h
 *
 *  Created on: 14/02/2014
 *      Author: root
 */

#ifndef SIGNATURES_H_
#define SIGNATURES_H_

int generateDag(int n, float expected_cnc, float expected_ci, int * numP, int ** P, float & cnc, float & ci);
int generateDag2(int n, float expected_cnc, float expected_ci, int * numP, int ** P, float & cnc, float & ci);
int generateDag3(int n, float expected_cnc, float expected_ci, int * numP, int ** P, float & cnc, float & ci);

int createModes(int n, int * M, int ** times, int ** costs);

// Se asume que los tiempos estas ordenados de mayor a menor (como en el paper)
int defineDeadline(int n, int * numP, int ** P, int * M, int ** times, float theta, int & T);

int writeFile(const char * fileName, int n, int T, int * numP, int ** P, int * M, int ** times, int ** costs);

#endif /* SIGNATURES_H_ */
